﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>xGetRoot（获取指定句柄的最上层窗口）</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<P>函数原型：<br>Function xGetRoot(hWnd As HWND) As HWND<br>HWND xGetRoot(HWND hWnd);</P>
<P>VB、VBS、按键精灵声明：<br>Declare Function Lib "xTask.dll" xGetRoot(ByVal hWnd As Long) As Long</P>
<P>参数：<br>hWnd：控件句柄</P>
<P>返回最上层窗口的句柄。</P>
<P>说明：<br>获取指定窗口最上层的窗口句柄。</P>
</body>
</html>